package com.ponhu.ea2.stockcenter.provider.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName(value = "ph_stock_change_mq_logs")
public class StockChangeMqLogs implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 货品编码
     */
    private String inventoryCode;

    /**
     * 交换机
     */
    private String exchange;

    /**
     * 路由键
     */
    private String routingKey;

    /**
     * 消息体
     */
    private String message;

    /**
     * 发送状态：1-成功，2-失败
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE, update = "NOW()")
    private LocalDateTime updatedTime;

}
